<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <title>添加种子</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	
	<link href="css/bootstrap.css" rel="stylesheet">
	
	
<style type="text/css">
.be-add-seed {
    width: 70%;
   
    margin: 0 auto;
    padding: 10px 15px;
    margin-top: 30px;
}
	body {background: rgb(254,238,189);}
</style>
  </head>
  
  <body>
  <div class="be-add-seed">
  
  <h1>添加种子</h1>
    <p style="font-weight: 900; color: red">${msg }</p>
    <form action="<c:url value='/AdminAddSeedServlet2'/>" method="post" enctype="multipart/form-data" >
    
    	 <div class="form-group">
                                <span>商品名称：</span>
                                <input type="text" placeholder="商品名称"  name="sname" value="" class="form-control" >
                            </div>
                            <div class="form-group">
                                <span>商品价格：</span>
                                <input type="text" placeholder="商品价格"  name="price" value="" class="form-control" >
                            </div>
                            <div class="form-group">
                                <span>商品规格：</span>
                                <input type="text" placeholder="商品规格"  name="large" value="" class="form-control" >
                            </div>
                            <div class="form-group">
                                <span>商品分类：</span>
                                <input type="text" placeholder="商品分类"  name="category" value="" class="form-control" >
                            </div>
                            <div class="form-group">
                                <span>特征特性：</span>
                                <input type="text" placeholder="特征特性"  name="xiangxi" value="" class="form-control" >
                            </div>
                            <div class="form-group">
                                <span>栽培要点：</span>
                                <textarea style="height: 150px;resize: none" type="text" placeholder="栽培要点"  name="yaodian" value="" class="form-control" ></textarea>
                            </div>
                            <div class="form-group">
                                <span>商品图片：</span>
                                <input type="file" placeholder="商品图片"  name="image" value="" >
                            </div>
                           
    		<select style="width: 150px; height: 20px;" name="cid">
    		<c:forEach items="${categoryList }" var="c">
    		<option value="${c.cid }">${c.cname }</option>
    	</c:forEach>
    	</select>
    	<br/>
    	<input type="submit" value="添加种子"/>
    </form>
  </div>
    
  </body>
</html>
